{% extends "pos/base.html" %}
{% load static %}
{% block title %}Business Worth Report{% endblock %}
{% block stylesheets %}
{% endblock %}
{% block heading %}Business Worth Report{% endblock %}
{% block content %}
{# Date Filters, Compare & Print + Show Multi Toggle #}
{# ——— rest of your tables unchanged ——— #}
{% for section in sections %}
{{ section.title }}
|
Item |
Total |
{% for entry in section.entries %}
|
{{ entry.key }} |
{{ entry.total|floatformat:2 }} |
{% if entry.items.0.category %}
| Category | Value |
{% elif entry.items.0.bank_name %}
Bank | Balance |
{% else %}
Name | Balance |
{% endif %}
{% for it in entry.items %}
{% if it.category %}
| {{ it.category }} |
{{ it.value|floatformat:2 }} |
{% elif it.bank_name %}
{{ it.bank_name }} |
{{ it.balance|floatformat:2 }} |
{% else %}
{{ it.name }} |
{{ it.bal|floatformat:2 }} |
{% endif %}
{% empty %}
| No details |
{% endfor %}
|
{% endfor %}
{% endfor %}
Total Assets: {{ assets_total|floatformat:2 }}
|
Total Liabilities: {{ liabilities_total|floatformat:2 }}
|
Total Growth: {{ growth|floatformat:2 }}
{% if compare_date %}
{% for section in cmp_sections %}
Change in {{ section.title }}
| Metric |
Then |
Now |
Δ |
{% for row in section.entries %}
| {{ row.key }} |
{{ row.then|floatformat:2 }} |
{{ row.now|floatformat:2 }} |
{{ row.delta|floatformat:2 }} |
{% endfor %}
| Total |
{{ section.totals.then|floatformat:2 }} |
{{ section.totals.now|floatformat:2 }} |
{{ section.totals.delta|floatformat:2 }} |
{% endfor %}
Total Assets: {{ delta_assets|floatformat:2 }}
|
Total Liabilities: {{ delta_liabilities|floatformat:2 }}
|
Growth: {{ main_growth|floatformat:2 }}
{% endif %}
{% endblock %}
{% block javascripts %}
{% endblock %}